package com.touka.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐菜品关系
 */
@Data
public class SetmealDish implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  private Long id;


  //套餐id
  private Long setmealId;


  //菜品id
  private Long dishId;
  // 菜品图片
  @TableField(select = false, exist = false)
  private String image;
  // 菜品描述
  @TableField(select = false, exist = false)
  private String description;


  //菜品名称 （冗余字段）
  private String name;

  //菜品原价
  private BigDecimal price;

  //份数
  private Integer copies;


  //排序
  private Integer sort;


  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;


  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updateTime;


  @TableField(fill = FieldFill.INSERT)
  private Long createUser;


  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Long updateUser;


  //是否删除
  private Integer isDeleted;
}
